package com.yyds.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data//get,set,toString方法
@AllArgsConstructor//全参有参构造
@NoArgsConstructor//无参构造
@SuppressWarnings({"all"})//抑制警告
public class NewsNews {
    //新闻编号
    private Integer news_id;
    //新闻标题
    private String news_title;
    //新闻内容
    private String news_content;
    //新闻图片
    private String news_picture;
    //新闻发布时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss" )
    private Date news_createtime;

}
